package cn.eric.framework.auth.domain;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;

@XmlAccessorType(XmlAccessType.NONE)
public class Rule {
    @XmlAttribute(name = "url")
    private String pattern;
    @XmlElement(name = "authorityId")
    private List<String> authorityIds;

    @Override
    public String toString() {
        return "Rule{" +
                "pattern='" + pattern + '\'' +
                ", authorityIds=" + authorityIds +
                '}';
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public List<String> getAuthorityIds() {
        return authorityIds;
    }

    public void setAuthorityIds(List<String> authorityIds) {
        this.authorityIds = authorityIds;
    }
}
